﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Inter.MianShi.DAL;
using Inter.MianShi.Model;

namespace Inter.MianShi.BLL
{
        public class ResumeBll
        {
            ResumeDal dal = new ResumeDal();

            /// <summary>
            /// 简历信息的显示
            /// </summary>
            /// <returns></returns>
            public List<Resume> showresume()
            {
                return dal.showresume();
            }

            /// <summary>
            /// 简历信息的添加
            /// </summary>
            /// <param name="r"></param>
            /// <returns></returns>
            public bool Addresume(Resume r)
            {
                return dal.Addresume(r);
            }

            /// <summary>
            /// 根据简历编号找到简历信息
            /// </summary>
            /// <param name="id"></param>
            /// <returns></returns>
            public Resume getid(int id)
            {
                return dal.getid(id);
            }

            /// <summary>
            /// 简历信息的修改
            /// </summary>
            /// <param name="re"></param>
            /// <returns></returns>
            public bool Updresume(Resume re)
            {
                return dal.Updresume(re);
            }

            /// <summary>
            /// 简历信息的删除
            /// </summary>
            /// <param name="id"></param>
            /// <returns></returns>
            public bool Delresume(int id)
            {
                return dal.Delresume(id);
            }
        }
    
}
